<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<script type="text/javascript" src="script/util.js"></script>
<script type="text/javascript" src="script/colorselector.js"></script>
<style type="text/css">#picImg{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);}</style>
<table  cellSpacing=0 cellPadding=2 border=1 width=100%>
<input type="hidden" name="id" id="id" value="<?=$row['id']?>" />
<input type="hidden" name="do" id="do" value="<?=(empty($do) ? 'Add' : $do) ?>" />
<input type="hidden" name="color" id="color" value="<?=$row['color']?>" />
 <tr>
   <td  class="t1">标&nbsp;&nbsp;&nbsp;&nbsp;题:</td>
   <td class="t1">
   <input type="text" name="title" style="float:left;" value="${article.title }" class=textbox />
   <div style="background-color:<?=$row['color']?>;float:left;margin-left:2px;" id="font_color" onclick="ColorSelecter.Show(this,'title');">
   <img src="images/color_selecter.gif" style="margin-top:-1px;" />
   </div>&nbsp;
   <?=setSelect(getStyles(), 'style', $row['style']);?>
   </td>
 </tr>
 <tr>
   <td>类&nbsp;&nbsp;&nbsp;&nbsp;型:</td>
   <td><?=setSelect(getEachTypes('news'), 'type', $row['type'], 'onChange="FindByTempID(this.value,\'news\',\''.$row['type'].'\');"');?></td>
 </tr>
 
 <tr>
 <td>复数标签:</td>
 <td><input type="text" name="label" id="label" class=textbox maxlength="50" value="<?=$row['label']?>"/>(用|隔开)</td>
 </tr>
 
 <tr>
   <td>内&nbsp;&nbsp;&nbsp;&nbsp;容:</td>
   <td colspan="2">
    <input type="hidden" name="content2" id="content2" value="<?=htmlspecialchars($row['content'])?>"/>
	<?=$editor?>
   </td>
 </tr>
 
 <tr>
   <td colspan="2" class="t1"><span>注:如果要对新闻内容分页,请选择要分页的段落，然后再加上</span><span style="color: red;"> *page* </span></td>
 </tr>
 
 <tr>
 <td>关&nbsp;键&nbsp;字:</td>
 <td><input type="text" name="keyword" id="keyword" class=textbox maxlength="50" value="<?=$row['keyword']?>"/></td>
 </tr>
 
 <tr>
 <td class="t1">描&nbsp;&nbsp;&nbsp;&nbsp;述:</td>
 <td class="t1"><textarea rows="3" cols="50" name="description" id="description" class=textarea ><?=$row['description']?></textarea></td>
 </tr>
 
 <tr id="image_tr">
 <td>上传预览图:</td>
 <td>
   <br/>
   <input type="file" name="file" id="file" accept="text/image" contentEditable="false" onkeypress="return false;" onpaste="return false" onchange="ImgPreview(this.value);" style="border:1px #ccc solid;height:20px;width:50%;"/>
   <br/><br/>
   <div id="picImg" style="text-align:center; vertical-align:middle; line-height:100px;width: 100px;height: 100px;border-style:groove;border-width:5pt; border-color:green;"><b>暂无图片</b></div>
   <br/>
 </td>
 </tr>
 
 <tr>
   <td>缩略图:</td>
   <td>宽<input type="text" name="width" class=textbox value="100" size="4" maxlength="3" />&nbsp;高<input type="text" name="height" class=textbox value="80" size="4" maxlength="3" /></td>
 </tr>
 
 <tr>
   <td class="t1">提&nbsp;交&nbsp;人:</td>
   <td class="t1"><input type="text" name="submituser" value="<?=$row['submituser']?>" class=textbox /></td>
 </tr>
 <tr>
   <td>来&nbsp;&nbsp;&nbsp;&nbsp;源:</td>
   <td><input type="text" name="source" value="<?=$row['source']?>" class=textbox /></td>
 </tr>

 <tr>
   <td class="t1">标&nbsp;&nbsp;&nbsp;&nbsp;签:</td>
   <td class="t1"><?=getTag($row['tag'])?></td>
 </tr>
 
 <tr>
   <td>状&nbsp;&nbsp;&nbsp;&nbsp;态:</td>
   <td><?=setSelect(getState(), 'flag', $row['flag']);?></td>
 </tr>
 
 <tr height="50px">
   <td colspan="2" align="center">
   <div><input type="button" value=" 提 交 " name="sbtn" class="button" onclick="this.form.action='Main.php?<?=$_SERVER['QUERY_STRING']?>&sbtn=submit';this.form.target='main';this.form.submit();"/>&nbsp;<input type="reset" value=" 重 置 " class="button"  />&nbsp;<input type="button" value=" 预 览 " class="button"  onclick="this.form.action='../eap/article.php?target=news&operate=preview';this.form.target='_blank';this.form.submit();"/>&nbsp;<input type="button" value=" 返 回 " onclick="history.go(-1);" class="button" /></div>
   </td>
 </tr>
</table>